#!coding:utf-8
from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('lottery_jx.views',
    url(r'^$', 'index', name='index'),
    url(r'^get_check_code$','get_check_code_image', name='get_check_code_image'),
    url(r'^login$', 'login', name='login'),
    url(r'^home$', 'home', name='home'),
    url(r'^rehome12$', 'rehome12', name='rehome12'),
    url(r'^logout$', 'logout', name='logout'),
)

#额度账户
urlpatterns += patterns('lottery_jx.view.account',
    url(r'^lottery/account/list$', 'listAcc', name='list'),
    url(r'^lottery/account/list1$', 'listAcc1', name='list1'),
    url(r'^lottery/account/company_recharge$', 'company_recharge', name='company_recharge'),
    url(r'^lottery/account/update_recharge$', 'update_recharge', name='update_recharge'),
    url(r'^lottery/accounts/after_recharge$', 'after_recharge', name='after_recharge'),
    url(r'^lottery/account/search$', 'search', name='search'),
    url(r'^lottery/account/surerechage$', 'surerechage', name='surerechage'),
    url(r'^lottery/accounts/data$', 'accDatalist', name='accDatalist'),
    url(r'^lottery/accounts/edit/(?P<accId>[^/]+)$', 'showAccEdit', name='showAccEdit'),
    url(r'^lottery/accounts/mess/(?P<accId>[^/]+)$', 'showmess', name='showmess'),
    url(r'^lottery/accounts/deleteAccount$', 'deleteAccount', name='deleteAccount'),
    url(r'^lottery/accounts/(?P<href>[^/]+).html$', 'static_href', name='static_href'),
    url(r'^lottery/accounts/submit_add$', 'add_account', name='add_account'),
    url(r'^lottery/accounts/submit_edit$', 'edit_account', name='edit_account'),
    url(r'^lottery/account/detailinfo$', 'account_detail', name='account_detail'),
    url(r'^lottery/accounts/get_trades_detail$', 'get_trades_detail', name='get_trades_detail'),
    url(r'^lottery/account/application-cash$', 'applicationcash', name='applicationcash'),
    url(r'^lottery/account/account-withdraws$', 'accountwithdraws', name='accountwithdraws'),
    url(r'^lottery/accounts/applications$', 'applications', name='applications'),
    url(r'^lottery/accounts/history_record$', 'history_record', name='history_record'),
    url(r'^lottery/accounts/refuse/(?P<id>[^/]+)$', 'refuse', name='refuse'),
    url(r'^lottery/accounts/add_application$', 'add_application', name='add_application'),
    url(r'^lottery/accounts/application_add$', 'application_add', name='application_add'),
    url(r'^lottery/accounts/withdraws$', 'withdraws', name='withdraws'),
    url(r'^lottery/accounts/agree_application$', 'agree_application', name='agree_application'),
    url(r'^lottery/accounts/refuse_application$', 'refuse_application', name='refuse_application'),
    url(r'^lottery/accounts/agree_recharge$', 'agree_recharge', name='agree_recharge'),
    url(r'^lottery/accounts/refuse_reason$', 'refuse_reason', name='refuse_reason'),
    url(r'^lottery/accounts/refuse_recharge/(?P<id>[^/]+)$', 'refuse_recharge', name='refuse_recharge'),
    url(r'^lottery/accounts/history_record0$', 'history_record0', name='history_record0'),
    url(r'^lottery/accounts/update_re$', 'update_re', name='update_re'),
    url(r'^lottery/accounts/company_re$', 'company_re', name='company_re'),
    url(r'^lottery/accounts/history_recharge$', 'history_recharge', name='history_recharge'),
    url(r'^lottery/accounts/add_recharge$', 'add_recharge', name='add_recharge'),
    url(r'^lottery/accounts/recharge_add$', 'recharge_add', name='recharge_add'),
    url(r'^lottery/accounts/history_re$', 'history_re', name='history_re'),
    url(r'^lottery/accounts/myself_recharge$', 'myself_recharge', name='myself_recharge'),
    url(r'^lottery/accounts/recharge_myself$', 'recharge_myself', name='recharge_myself'),
    url(r'^lottery/accounts/add_ac$', 'add_ac', name='add_ac'),
    url(r'^lottery/accounts/succ$', 'succ', name='succ'),
    url(r'^lottery/account/search22$', 'search22', name='search22'),
    url(r'^lottery/account/handle_bank_report$', 'handle_bank_report', name='handle_bank_report')
)

#账户统计
urlpatterns += patterns('lottery_jx.view.count_inquire',
    url(r'^lottery/count_inquire/saleinquire$', 'saleinquire', name='saleinquire'),
    url(r'^lottery/count_inquire/saleinfo$', 'saleinfo', name='saleinfo'),
    url(r'^lottery/count_inquire/infodetail/(?P<tradeid>[^/]+)$', 'infodetail', name='infodetail'),
    url(r'^lottery/count_inquire/statistics$', 'statistics', name='statistics'),
    url(r'^lottery/count_inquire/statistics/data$', 'statitsticsDatalist', name='statitsticsDatalist'),
    #导出统计结果
    url(r'^lottery/report/statistics/(?P<start>[^/]+)/(?P<end>[^/]+)$', 'statitsticsReport', name='statitsticsReport'),
    url(r'^lottery/count_inquire/edit/(?P<id>[^/]+)$', 'edit', name='edit'),
    url(r'^lottery/count_inquire/submit_edit$', 'submitEdit', name='submitEdit'),
    url(r'^lottery/count_inquire/re_edit$', 're_edit', name='re_edit'),
    url(r'^lottery/count_inquire/re_edit1$', 're_edit1', name='re_edit1'),
    url(r'^lottery/count_inquire/saleinfo/export$', 'export', name='export'),
    #收支明细
    url(r'^lottery/balance/page$', 'balance', name='balance'),
    url(r'^lottery/balance/detail$', 'balance_detail', name='balance_detail'),
)

#系统设置
urlpatterns += patterns('lottery_jx.view.systemsettings',
    url(r'^lottery/settings/systemsettings$', 'systemsettings', name='systemsettings'),
    url(r'^lottery/settings/systemsettings/data$', 'settingsDataList', name='systemsettings'),
    url(r'^lottery/settings/systemsettings/edit/(?P<settingsId>[^/]+)$', 'showSettingsEdit', name='showSettingsEdit'),
    url(r'^lottery/settings/systemsettings/submit_edit$', 'submitEdit', name='submitEdit'),
    url(r'^lottery/settings/modifypwd$', 'modifypwd', name='modifypwd'),
    url(r'^lottery/settings/modifypwd/submit_modify$', 'submit_modify', name='submit_modify'),
)

#返奖管理
urlpatterns += patterns('lottery_jx.view.prize',
    url(r'^lottery/prize/prizelist$', 'prizelist', name='prizelist'),
    url(r'^lottery/prize/prizelist/data11$', 'prizeDatalist', name='prizeDatalist'),
    url(r'^lottery/prize/prizelist/export$', 'export_awards', name='export_awards'),
)
